#pragma once
#include <iostream>
#include <thread>
#include <chrono>
#include "cardreader.h"
#include "fuelpump.h"
#include "FuelSelector.h"
#include "Keypad.h"
#include "LCDdisplay.h"
#include "ReceiptPrinter.h"


namespace GASPUMP
{
	class LCDDisplay;

class Controller
{
public:
	Controller(void);	

	~Controller(void);

	void userloop ( void );

	void maintloop (void);

	void resuploop (void);

	bool m_opmode;

	cardreader* crd;
	fuelpump* flpmp;
	FuelSelector* flslct;
	Keypad* kpd;
	LCDDisplay* lcd;
	ReceiptPrinter* rcp;
	Controller * cntrl;

	double costReg, costMid, costPrem;

protected:
	
	
private:
	
	
};

}